package com.example.yuejian.Service;

import com.example.yuejian.Bean.LoginBean;
import com.example.yuejian.Bean.RegBean;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by ASUS-PC on 2017/10/23.
 */

public interface UserService {


    /*确定post  或者get
                   设置URL+path路径
                   例如：http://114.67.139.248:8080/MenuAPIDemo/dishes
                    baseurl=114.67.139.248:8080/MenuAPIDemo/
                    oath:dishes
                    parameter(参数)
                    */
    @GET("login")
     Call<LoginBean>getLogin(@Query("username") String username,
                             @Query("password") String password);


    @POST("reg")
    Call<RegBean> Reg(@Query("username") String username,
                      @Query("password") String password,
                      @Query("userphone")String userphone);
}

